package com.example.springbasic.dto;

import com.example.springbasic.beans.Animal;
import lombok.Data;
import org.junit.Assert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
//@Component
@Data
public class AnimalDTO {

    private Long animalId;
    private String animalName;

    @Autowired
    public void setAnimal(Animal animal){
        Assert.assertNotNull(animal);
    }
}
